@extends('layouts.default')
@section('title','修改你名字哦')
    <form action="{{route('users.update',$user->id)}}" method="post">
        {{csrf_field()}}
        {{method_field('PATCH')}}
        <label for="name">名字</label>
        <input type="text" name="name">

        <label for="email">邮箱</label>
        <input type="email" name="email" value="{{$user->email}}" disabled>

        <label for="password">密码</label>
        <input type="password" name="password">

        <label for="password_confirmation">确认密码</label>
        <input type="password" name="password_confirmation">

        <button type="submit">提交</button>
    </form>